package com.mm.enums;

/**
 * @ProjectName: Car
 * @Package: com.mm.enums
 * @ClassName: CodeMsg
 * @Author: 杨朝湖
 * @Description:
 * @Date: 2020/12/1 10:32
 * @Version: 1.0
 */
public enum CodeMsgEnu {
    REQUEST_BAST(500400, "请求失败"),
    REQUEST_ERROR(500401, "请求异常"),
    SERVER_ERROR(500100, "服务端异常"),
    NOT_KNOWS_ERR(500, "未知异常，请联系开发人员"),
    NOT_LOGGED_IN(401, "未登录"),
    NO_PERMISSION(403, "无权限"),
    NO_USER(500102, "不存在该用户"),
    USER_NOT(500103, "用户名或密码错误");
    /**
     * 状态码
     */
    private int code;
    /**
     * 提示信息
     */
    private String msg;

    CodeMsgEnu(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
